package com.mit.wx.vo;

import lombok.Data;

import java.util.List;

@Data
public class EasyUIDataGrid<T> {
    public static <T> EasyUIDataGrid<T> of(long total, List<T> rows) {
        EasyUIDataGrid<T> result = new EasyUIDataGrid<>();
        result.setTotal(total);
        result.setRows(rows);
        return result;
    }

    private long total;

    private List<T> rows;
}
